﻿@extends('layout.home')
        <!-- banner图 -->
        @section('content') 
        
            <div class="u_container">
				<div>
					<div class="u_header">
						<ul class="u_banners" id="header">
                            <li data-src="/international/" style="background-image:url('/public/home/Images/34158fdbd4d387a08b30ae527a83a74d1475745127.jpg')">&nbsp;</li>
							<!-- <li data-src="/international/" style="background-image:url('/public/home/Images/openqualifiers_02.png')">&nbsp;</li> -->
						</ul>

						<div class="u_content">
							<i class="u_icon u_icon_header_l_arrow slick-arrow" style="display: block;"></i>
							<i class="u_icon u_icon_header_r_arrow slick-arrow" style="display: block;"></i>
                            <a href="/international/" class="u_link" target="_blank"></a>
							<!-- <a href="/international/" class="u_link" target="_blank"></a> -->
							<ul class="u_pages">
							 <li><i class="u_icon u_icon_page u_active"></i></li>
							</ul>
						</div>
					</div>
				</div>

                <div>
                    <div class="u_section u_btn_section">
                        <div class="u_left_box">
                            <div class="u_btn_container">
                                <a href="{{url('/home/pay')}}" target="_blank" class="u_button u_btn_recharge"></a>
                                <a href="{{url('/home/pay')}}" target="_blank" class="u_button u_btn_recharge_hover u_hidden"></a>
                            </div>
                            <div class="u_btn_container u_even">
                                <a href="/download/" target="_blank" class="u_button u_btn_download"></a>
                                <a href="/download/" target="_blank" class="u_button u_btn_download_hover  u_hidden"></a>
                            </div>
                             <div class="u_btn_container">
                                <a href="{{url('/register')}}" target="_blank" class="u_button u_btn_signup"></a>
                                <a href="{{url('/register')}}" target="_blank" class="u_button u_btn_signup_hover u_hidden"></a>
                            </div>

                        </div>
                        <div class="u_right_box">
                            <span href="javascript:void(0);" class="u_button u_btn_guide"></span>
                             <div class="u_btn_container">
                                 <a href="/heroes/index.htm" target="_blank" class="u_button u_btn_heroinfo u_even"></a>
                                 <a href="/heroes/index.htm" target="_blank" class="u_button u_btn_heroinfo_hover u_even u_hidden"></a>
                            </div>
                            <div class="u_btn_container">
                                <a href="/items/index.htm" target="_blank" class="u_button u_btn_itemsinfo"></a>
                                <a href="/items/index.htm" target="_blank" class="u_button u_btn_itemsinfo_hover u_hidden"></a>
                            </div>
                            <div class="u_btn_container">
                                <a href="/guide/" target="_blank" class="u_button u_btn_steps u_even"></a>
                                <a href="/guide/" target="_blank" class="u_button u_btn_steps_hover u_even u_hidden"></a>
                            </div>
                            <div class="u_btn_container">
                                <a href="/recruit/" target="_blank" class="u_button u_btn_min"></a>
                                <a href="/recruit/" target="_blank" class="u_button u_btn_min_hover u_hidden"></a>
                            </div>
                        </div>
                    </div>
                </div>
                <div>
                <!-- 主体内容 -->
                    <div class="u_section">
                        <!-- 右侧内容start -->
                        <!-- 分类循环开始 -->
                        @foreach($cates as $k=>$v)
                        @if($k%5 == 0)
                        <div class="u_left_box u_news_section">
                            <div class="u_title">
                                <div class="u_left">
                                    <i class="u_icon u_icon_news"></i>
                                    <span>{{$v->name}}</span>
                                </div>
                                <div class="u_right">
                                    <a href="{{url('/home/lists',['id'=>$v->id])}}" target="_blank">更多</a>
                                    <i class="u_icon u_icon_more"></i>
                                </div>
                            </div>
                            <div class="u_content">
                                <ul class="u_panels">
                                    <li class="u_panel u_active">
                                        <div class="u_lists">
                                            <!-- 分类1内容 -->
                                            <!-- 置顶内容 -->
                                            @foreach($tnews as $tnk=>$tnv)
                                            <!-- 查询本分类下的新闻 -->
                                                @if($v->id == $tnv->pid)
                                                <a class="u_recommend" href="{{url('/home/news',['id'=>$tnv->id])}}" target="_blank">
                                                        <h3>{{$tnv->title}}</h3>
                                                        <div class="u_contents">
                                                            <div class="u_item_avatar">
                                                                <img src="/public/newsimage/{{$tnv->pic}}" alt="波士顿特锦赛现场票将于今日22时发售 决赛日门票40美元">
                                                            </div>
                                                            <div class="u_msg">
                                                                <p href="{{url('/home/news',['id'=>$tnv->id])}}" target="_blank">
                                                                {{$tnv->contents}}
                                                                </p>
                                                                <span class="u_date">{{date('Y-m-d H:i:s',$tnv->time)}}</span>
                                                            </div>
                                                        </div>
                                                </a>
                                                @endif
                                            @endforeach
                                            @foreach($news as $nk=>$nv)   
                                                <!-- 查询本分类下的新闻 -->
                                                @if($v->id == $nv->pid)
                                                <!-- 判断是否置顶 -->
                                                @if($nv->status == 1)
                                                <a class="u_recommend" href="{{url('/home/news',['id'=>$nv->id])}}" target="_blank">
                                                    <h3>{{$nv->title}}</h3>
                                                    <div class="u_contents">
                                                        <div class="u_item_avatar">
                                                            <img src="http://img.dota2.com.cn/dota2/19/1b/191b82a45c66d82350553dbadf71f8b81476430978.jpg" alt="波士顿特锦赛现场票将于今日22时发售 决赛日门票40美元">
                                                        </div>
                                                        <div class="u_msg">
                                                            <p href="{{url('/home/news',['id'=>$nv->id])}}" target="_blank">
                                                            {{$nv->contents}}
                                                            </p>
                                                            <span class="u_date">{{date('Y-m-d H:i:s',$nv->time)}}</span>
                                                        </div>
                                                    </div>
                                                </a>
                                                @elseif($nv->status == 2)
                                                <!-- 样式交错 -->
                                                @if($nk%2 == 0)
                                                
                                                <a class="u_list u_highlight" href="{{url('/home/news',['id'=>$nv->id])}}">
                                                    <i class="u_icon u_icon_dot"></i>
                                                    <p>{{$nv->title}}</p>
                                                    <span class="u_date">{{date('Y-m-d H:i:s',$nv->time)}}</span>
                                                    
                                                </a>
                                               
                                                <!-- 样式交错 -->
                                                @elseif($nk%2 == 1)
                                                <a class="u_list" href="{{url('/home/news',['id'=>$nv->id])}}">
                                                    <i class="u_icon u_icon_dot"></i>
                                                    <p>{{$nv->title}}</p>
                                                    <span class="u_date">{{date('Y-m-d H:i:s',$nv->time)}}</span>    
                                                </a>
                                                @endif
                                                <!-- 样式交错end -->
                                                @endif
                                                <!-- 判断end -->
                                                @endif
                                                 <!-- 查询本分类下的新闻end -->
                                            @endforeach       
                                            </div>
                                    </li>                                                                                   </li>
                                </ul>
                                
                            </div>
                        </div>
                        
                        
                        <!-- 右侧end -->
                        <!-- 左侧内容start -->
                        @elseif($k%5 == 1)
                        <div class="u_right_box u_races_section">
                            <div class="u_title">
                                <div class="u_left">
                                    <i class="u_icon u_icon_games"></i>
                                    <span>{{$v->name}}</span>
                                </div>
                                <div class="u_right">
                                    <a href="{{url('/home/lists',['id'=>$v->id])}}" target="_blank">更多</a>
                                    <i class="u_icon u_icon_more"></i>
                                </div>
                            </div>
                            <div class="u_content">
                                <!-- 置顶内容 -->
                                @foreach($tnews as $tnk=>$tnv)
                                    <!-- 查询本分类下的新闻 -->
                                    @if($v->id == $tnv->pid)
    								<div class="u_mainrace">
                                        <a href="{{url('/home/news',['id'=>$tnv->id])}}" target="_blank">
                                            <img src="/public/newsimage/{{ $tnv->pic }}" alt="" />
                                        </a>
                                    </div>
                                    @endif
                                @endforeach
                                <div class="u_race_lists">
                                @foreach($news as $nk=>$nv)
                                <!-- 查询本分类下的新闻 -->
                                @if($nv->pid == $v->id) 
                                <!-- 样式交错 -->
                                @if($nk%2 == 1)
									<a class="u_race_list u_highlight" href="{{url('/home/news',['id'=>$nv->id])}}">
										<div class="u_race_logo">
											<img src="/public/newsimage/{{ $nv->pic }}" alt="国际邀请赛中国区预选赛" />
										</div>
										<div class="u_icon u_icon_split"></div>
										<p class="u_race_title">{{$nv->title}}</p>
									</a>									
                                <!-- 样式交错 -->
                                @elseif($nk%2 == 0)
                                    <a class="u_race_list" href="{{url('/home/news',['id'=>$nv->id])}}">
                                        <div class="u_race_logo">
                                            <img src="/public/newsimage/{{ $nv->pic }}" alt="国际邀请赛中国区预选赛" />
                                        </div>
                                        <div class="u_icon u_icon_split"></div>
                                        <p class="u_race_title">{{$nv->title}}</p>
                                    </a>                                    
                                <!-- 样式交错end -->
                                @endif 
                                <!-- 查询本分类下的新闻end -->
                                @endif
                                @endforeach
                                </div>
                            </div>
                        </div>
                        @endif
                        @endforeach
                        <!-- 分类循环end -->
                        <!-- 右侧end -->
                    </div>
                    <!-- 分类循环开始 -->
                    @foreach($cates as $k=>$v)
                    @if($k%5 == 2)
                    <div class="u_section">
                        
                        <!-- 轮播图 -->
                        
                        <div class="u_left_box">
                            <div class="u_version">
                                <div class="u_title">
                                    <div class="u_left">
                                        <i class="u_icon u_icon_version"></i>
                                        <span>{{$v->name}}</span>
                                    </div>
                                    <div class="u_right">
                                        <a href="{{url('/home/lists',['id'=>$v->id])}}" target="_blank">更多</a>
                                        <i class="u_icon u_icon_more"></i>
                                    </div>
                                </div>
                                <div class="u_content">
                                    <i class="u_icon u_icon_version_l_arrow"></i>
                                    <i class="u_icon u_icon_version_r_arrow"></i>
                                <ul class="u_lists">
                                    @foreach($news as $nk=>$nv)
                                    @if($nv->pid == $v->id)
                                    <li class="u_list">
                                    <a href="{{url('/home/news',['id'=>$nv->id])}}">
                                    <span class="u_version_logo">
                                    <img src="/public/newsimage/{{$nv->pic}}" alt="6.88c版本更新日志"/> </span> 
                                    <span class="u_version_title">{{$nv->title}}</span> 
                                    <i class="u_icon u_icon_anglenew"></i> 
                                    </a>
                                    </li>
                                    @endif
                                    @endforeach
                                </ul>

                                <ul class="u_pages">
                                    @foreach($news as $nk=>$nv)
                                    @if($nv->pid == $v->id)
                                    <li><i class="u_icon u_icon_page"></i></li>
                                    @endif
                                    @endforeach
                                </ul>                                
                                </div>
                            </div>
                            <!-- 轮播图end -->
                            <!-- 轮播图下方图片展示 -->
                            @elseif($k%5 == 3 )
                            <div class="u_map">
                                <div class="u_title">
                                    <div class="u_left">
                                        <i class="u_icon u_icon_map"></i>
                                        <span>{{$v->name}}</span>
                                    </div>
                                    <div class="u_right">
                                        <a href="{{url('/home/lists',['id'=>$v->id])}}" target="_blank">更多</a>
                                        <i class="u_icon u_icon_more"></i>
                                    </div>
                                </div>
                                <div class="u_content">
                                    <ul>
                                            @foreach($news as $nk=>$nv)
                                            @if($v->id == $nv->pid)
                                            <li>
                                                <a target="_blank" href="{{url('/home/news',['id'=>$nv->id])}}">
                                                    <span class="u_map_logo"><img src="/public/newsimage/{{$nv->pic}}" alt="澄海3c原创攻略征集" /></span>
                                                    <span class="u_map_title">{{$nv->title}}</span>
                                                </a>
                                            </li>
                                            @endif
                                            @endforeach
                                    </ul>                                                                                                                                                                                                                                                                                                                                                                                              </ul>
                                </div>
                            </div>
                            <!-- 轮播图下方图片展示end -->
                        </div>
                        <!-- 右侧内容 -->
                        
                        @elseif($k%5 == 4 )
                        <div class="u_right_box u_call_section">
                            <div class="u_title">
                                <div class="u_left">
                                    <i class="u_icon u_icon_call"></i>
                                    <span>{{$v->name}}</span>
                                </div>
                                <div class="u_right">
                                    <a href="{{url('/home/lists',['id'=>$v->id])}}" target="_blank">更多</a>
                                    <i class="u_icon u_icon_more"></i>
                                </div>
                            </div>
                            <div class="u_content">
                                <div class="u_search">
                                    <form method="get" action="http://kf.dota2.com.cn/home/search">
                                        <div class="u_inputgrounp">
                                            <input name="q" value="" placeholder="输入您的问题" type="text">
                                            <i class="u_icon u_icon_search"></i>
                                            <input value="" class="u_btn_submit" type="submit">搜索
                                        </div>
                                    </form>
                                    <a class="u_btn_add" href="http://kf.dota2.com.cn/user/askquestion?i=myask" target="_blank">我要提问</a>
                                </div>
                                <div class="u_questions">
                                    <h3>{{$v->name}}</h3>
                                    <div class="u_lists">
                                        @foreach($news as $nk=>$nv)
                                        @if($nv->pid == $v->id)
                                        <a target="_blank" class="u_list" href="">
                                            <i class="u_icon u_icon_dot"></i>
                                            <p>{{$nv->title}}</p>
                                        </a>
                                        @endif
                                        @endforeach
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        
                        <!-- 右侧end -->
                    </div>
                    </div>
                    @endif
                    @endforeach
                    <!-- 分类循环end -->
                    <!-- 内容end -->
                </div>
                <div>
 
            </div>
        </div>
    </div>

	<div class="m-slide opened" id="J_slide">
		<a class="m-slide-trigger J-slide-trigger"><span>收起</span><i></i></a>
		<div class="m-slide-box m-slide-service">
			<a href="http://cs.wanmei.com/im?imCode=imdotagames" target="_blank" class="lnk-box lnk-box-service"><i></i><span>在线客服</span></a>
			<p class="feedback-mail">投诉邮箱 <br><span class="smaller-txt"></span></p>
		</div>
		<div class="m-slide-box m-slide-sina">
			<a href="http://weibo.com/p/1006063083660057" target="_blank" class="lnk-box lnk-box-weibo"><i></i><span>新浪微博</span></a>
			<div class="dota2-weixin">
				<p>DOTA2官方微信</p>
				<div class="pic-weixin">
				</div>
			</div>
		</div>
		<a href="http://app.dota2.com.cn/web.html" target="_blank" class="m-slide-box m-slide-app">
		</a>
        <div class="m-slide-box m-slide-app766">
            <div class="dota2-app766">
                <p>766电竞APP</p>
                <div class="pic-app766">
                </div>
            </div>
        </div>

	</div>
@endsection
